home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 24 / AACD 24.iso / AACD / Online / Epic4 / share / epic / help / 6_functions / winbound < prev    next >
Text File  |  2001-03-21  |  852b  |  27 lines

  1. Synopsis:
  2.    $winbound(<channel name>/<window name>/<window refnum>)
  3.  
  4. Technical:
  5.    If the first argument refers to a channel, the function returns the window
  6.    refnum that the channel is bound to (if any). If the argument refers to
  7.    a window, the channel bound to that window is returned (if any).
  8.  
  9. Practical:
  10.    This can be used to determine wether a channel is already bound, as to not
  11.    bind it twice.
  12.  
  13. Returns:
  14.    channel name, if argument refers to a window
  15.    window refnum, if argument is a channel
  16.    nothing, if channel/window is not bound
  17.  
  18. Examples:
  19.    /window refnum 2 bind #epic
  20.    eval echo $winbound(2)                           /* returns "#epic" */
  21.    eval echo $winbound(#epic)                       /* returns 2 */
  22.  
  23. Other Notes:
  24.    If a given window name looks like a channel, the window name takes
  25.    precedence.
  26.  
  27.